package com.qf.service.impl;

import com.qf.mapper.RolePermMapper;
import com.qf.pojo.RolePerm;
import com.qf.service.RolePermService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RolePermServiceImpl implements RolePermService {
    @Resource
    RolePermMapper rolePermMapper;
    @Override
    public List<RolePerm> findAll() {
        return rolePermMapper.findAll();
    }

    @Override
    public int add(RolePerm rolePerm) {
        return rolePermMapper.add(rolePerm);
    }

    @Override
    public int update(RolePerm rolePerm) {
        return rolePermMapper.update(rolePerm);
    }

    @Override
    public int delete(int rpid) {
        return rolePermMapper.delete(rpid);
    }

    @Override
    public RolePerm findRolePermByid(int rpid) {
        return rolePermMapper.findRolePermByid(rpid);
    }
}
